<?php
	$compHtml ="";
	if ($this->label["value"] != ""){
		//create input text with label
		$labelOpt = $this->label["htmlOptions"];
		$compHtml ="<label $labelOpt>" .$this->label["value"] ."</label>";
	}	
	$val = Yii::app()->request->getParam($this->name,$this->value);	
	$compHtml .= "<input type='text' name='$this->name' id='$this->name' $this->htmlOptions value='$this->value' />";
	
	echo $compHtml;
?>

